<!DOCTYPE html>
<!--
/**
 * @Author: Raymond 
 * @Date: 2020/7/14 17:15 
 * @Description: 
 * */ 
-->
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="#(context)/static/jquery-3.5.1.min.js"></script>
</head>
<body style="text-align: center">
<div style="height: 200px"></div>
<form action="#(context)/detil/update" method="post">
    <label>姓名</label> <input type="text" name="Oneuser.name"    value="#(Oneuser.name??)"> <br>
    <label>住址</label> <input type="text" name="Oneuser.address" value="#(Oneuser.address??)"><br>
    <label>邮箱</label> <input type="text" name="Oneuser.email"   value="#(Oneuser.email??)"> <br>
    <label>性别</label> <input type="text" name="Oneuser.sex"     value="#(Oneuser.sex??) "><br>
    <input type="text" name="Oneuser.id" value="#(Oneuser.id??)" style="display: none">
    <button type="submit" >提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<button type="reset">重置</button>
    <a style="color: red">#(message)</a>
</form>

<script>
    // function update(id) {
    //     var name  = document.getElementById("Oneuser.name");
    //     var address = document.getElementById("Oneuser.address");
    //     var email = document.getElementById("Oneuser.email");
    //     var sex = document.getElementById("Oneuser.sex");
    //     if ("男" == sex)
    //         sex = 1
    //     if ("女" == sex)
    //         sex = 2
    //     console.log(id+"--"+name+"--"+address+"--"+email+"--"+sex);
    //     // $.ajax({
    //     //     url: "#(context)/detil/update",
    //     //     type: "POST",
    //     //     dataType: 'JSON',
    //     //     async: false,
    //     //     data: {id:id, name:name, address:address, email:email, sex:sex}
    //     // });
    // }
</script>
</body>
</html>